import { get, post } from '@/utils/request.js'

/**
 * 获取未读消息个数
 */
export const getNoReadCountApi = () => {
	return get('/notifyMsg/getNoReadCount')
}

/**
 * 获取通知消息数据
 */
export const getNotifyMsgApi = (params) => {
	return get('/notifyMsg/pageNotifyMsg', params)
}

/**
 * 更新消息已读状态
 */
export const updateReadApi = (data) => {
	return post('/notifyMsg/updateRead', data)
}

/**
 * 清除未读
 */
export const cleanNoReadApi = () => {
	return post('/notifyMsg/cleanNoRead')
}
